package com.fansl.allround.common.security.annotation;

import com.fansl.allround.common.security.component.AllroundResourceServerAutoConfiguration;
import com.fansl.allround.common.security.component.AllroundSecurityBeanDefinitionRegistrar;
import org.springframework.context.annotation.Import;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

import java.lang.annotation.*;

/**
 * @author fansl
 * @Description: 资源服务注解
 * @date 2019/7/12 14:50
 */
@Documented
@Inherited
@EnableResourceServer
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@EnableGlobalMethodSecurity(prePostEnabled = true)
@Import({AllroundResourceServerAutoConfiguration.class, AllroundSecurityBeanDefinitionRegistrar.class})
public @interface EnableAllroundResourceServer {
}
